<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ace="http://www.icefaces.org/icefaces/components">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h1>Bonjour #{profileMB.unmembre.firstNameMembers}: bienvenue sur notre site</h1>
        <!--          valeur String : #{email.valInputText} -->
        <h:form id="form">
<!--            <ace:tabSet style="width: 70%" id="sampleTabSet" clientSide="false">
                <ace:tabPane id="toDoList" label="Profile #{profileMB.unmembre.firstNameMembers}" >-->
                    <ace:panel  style="width: 100%" header="Photo">


                        <ace:graphicImage style="width:100%" title="test" value="#{profileMB.unmembre.photoProfileMembers}" name="profile Image"/>
                        <br />
                        <h:outputLabel value="Prenom: " />
                        <h:outputText title="ggg" id="firstname" value="#{profileMB.unmembre.firstNameMembers}"/>
                        <br />
                        <h:outputLabel value="Sexe: " />
                        <h:outputText title="ggg" id="sexe" value="#{profileMB.unmembre.genderMembers}"/>
                        <br />
                        <h:outputLabel value="Age: " />
                        <h:outputText title="ggg" id="age" value="#{profileMB.unmembre.ageMembers}"/>
                        <br />
                        <h:outputLabel value="Email: " />
                        <h:outputText  id="Email" value="#{profileMB.unmembre.emailMembers}"/>
                        <br />
                        <h:outputLabel value="Birthday: " />
                        <h:outputText  id="birthday" value="#{profileMB.unmembre.birthdayMembers}"/>
                        <br />
                        <h:outputLabel value="Status " />

                        <h:outputText  id="connect" value="#{profileMB.unmembre.isConnected}"/>
                  
                    <br />



                        <h:outputLabel value="Country: " />
                        <h:outputText title="ggg" id="Country" value="#{profileMB.unmembre.countryMembers}"/>
                        <br />
                        <h:outputLabel value="Job Title: " />
                        <h:outputText title="ggg" id="JobTitre" value="#{profileMB.unmembre.occupationMembers}"/>
                        <br />
                        <h:outputLabel value="Type de Membership: " />
                        <h:outputText title="ggg" id="memberId" value="#{profileMB.unmembre.membershipID}"/>
                        <br />

                    </ace:panel>

                    <h:outputLabel value="Profile Visite: " />
                    <h:outputText title="ggg" id="profilevisite" value="#{profileMB.unmembre.profileSawMembers}"/>
                    <br />
                    <ace:pushButton style="float: right" id="membership"
                                    value="Mis a jour MemberShip"
                                    action="#{membership.finishRegister()}"/>
                    <ace:pushButton style="float: right" id="editer"
                                    value="Editer Profil"
                                    actionListener="#{pushButton.executeListener}"/>
           </ace:panel>      
<!--                <ace:tabPane id="mesphotos" label="Mes PHotos">
                    <h:form id="example-form">

                        <h:panelGrid styleClass="centeredPanelGrid">
                            <h:outputText value="File Upload" styleClass="headerFontStyle"/>
                        </h:panelGrid>
                        <ace:panel>
                            <ace:fileEntry id="file-entry"
                                           relativePath="/files/"
                                           maxFileCount="10"
                                           maxFileCountMessage="Limited to 10 files uploaded concurrantly."
                                           fileEntryListener="#{fileEntry.sampleListener}"
                                           maxFileSize="6291456"
                                           maxFileSizeMessage="Submitted file is too large."
                                           maxTotalSize="18874368"
                                           maxTotalSizeMessage="Total size of submitted files is too large."
                                           required="true"
                                           requiredMessage="The file is required to submit this form."
                                           useOriginalFilename="true"
                                           useSessionSubdir="true"
                                           autoUpload="false"
                                           multiple="true"/>
                            <br/>
                            <br/>
                            <ace:dataTable id="tbl" value="#{fileEntry.fileData}" var="fileDataVal">
                                <ace:columnGroup id="columnGroup" type="header">
                                    <ace:row>
                                        <ace:column colspan="3" headerText="Files on Server"/>
                                    </ace:row>

                                    <ace:row>
                                        <ace:column headerText="File name"/>
                                        <ace:column headerText="File size"/>
                                        <ace:column headerText="Content Type"/>
                                    </ace:row>
                                </ace:columnGroup>

                                <ace:column>
                                    <h:outputText value="#{fileDataVal.name}"/>
                                </ace:column>
                                <ace:column>
                                    <h:outputText value="#{fileDataVal.size}"/>
                                </ace:column>
                                <ace:column>
                                    <h:outputText value="#{fileDataVal.contentType}"/>
                                </ace:column>

                                <ace:panelExpansion>
                                    <h:outputText rendered="#{not fileDataVal.info == null}" value="#{fileDataVal.info}" />
                                </ace:panelExpansion>


                            </ace:dataTable>
                            <ace:messages id="msgs" for="example-form:file-entry"/>
                        </ace:panel>
                    </h:form>
                </ace:tabPane>-->
<!--                <ace:tabPane id="picOfDay" label="Message">-->


                    
                </ace:tabPane>
                <ace:tabPane id="calendar" label="Favoris">
                    <h:panelGrid styleClass="centeredPanelGrid" >
                        <h:form>
                            <ace:panel header="Liste des favoris">
                                <ace:dataTable id="marqueTable"
                                               value="#{recherche.mesMembres}"
                                               var="member"                   
                                               rows="15" >
                                    <ace:column id="nom1" headerText="Nom">
                                        <h:outputText id="nom" value="#{member.firstNameMembers}"/>
                                    </ace:column>
                                    
                                   
                                        <h:commandButton value="Ajouter Favoris" action="#{favorites.insertFavorie(member.idMembers)}"/>
               
                <ace:column headerText="Action1">
                    <h:commandButton value="Supprimer Favoris" action="#{favorites.deleteFavorie(member.idMembers)}"/>
                </ace:column>

                                    <br />


                                </ace:dataTable>


                            </ace:panel>
                        </h:form>
                    </h:panelGrid>
                </ace:tabPane>
                <ace:tabPane id="calendar1" label="Messages">
                    <h:panelGrid styleClass="centeredPanelGrid" >
                        <h:form>
                            <ace:panel header="messages">
        <ace:dataTable id="marqueTable"
                       value="#{listemessages.mesMessages}"
                          var="message"                   
                          rows="7" >
                <ace:column id="no1" headerText="IDA">
                    <h:outputText id="no" value="#{envoyeMessage.lemembre.idMembers}"/>
                </ace:column>
            <ace:column id="noserie1" headerText="From Ids">
                <h:outputText id="noserie" value="#{message.idFromMembers}"/>
                </ace:column>
            <ace:column id="modele1" headerText="Content">
                <h:outputText id="modele" value="#{message.contentMessage}"/>
                </ace:column>
             <ace:column id="delete1" headerText="Delete">
                <h:outputText id="delete" value="delete" />
                </ace:column>
          
            <br />
            
            
             </ace:dataTable>
             
                 </ace:panel>
                        </h:form>
                    </h:panelGrid>
                </ace:tabPane>

            </ace:tabSet>-->
        </h:form>
    </h:body>
</html>


